#!/bin/sh
#
# Create Manual Page Package
#
# $ Bitmap: pkgman.sh    Rev. 1.0.3    2011-07-06T14:37+08:00 $

PKG_MAN_PATH="../../man"

if test ! -d $PKG_MAN_PATH
then
  mkdir $PKG_MAN_PATH
fi

# Copy Manual Page
cp bitmap.3 $PKG_MAN_PATH/bitmap_t.3
cp bitmap.3 $PKG_MAN_PATH/bitmap_init.3
cp bitmap.3 $PKG_MAN_PATH/bitmap_dest.3

cp bitmap_all.3 $PKG_MAN_PATH/bitmap_all_mark.3
cp bitmap_all.3 $PKG_MAN_PATH/bitmap_all_none.3

cp bitmap_set.3 $PKG_MAN_PATH/bitmap_set_mark.3
cp bitmap_set.3 $PKG_MAN_PATH/bitmap_set_none.3

cp bitmap_check.3 $PKG_MAN_PATH/bitmap_check.3

cp bitmap_count.3 $PKG_MAN_PATH/bitmap_get_marks.3
cp bitmap_count.3 $PKG_MAN_PATH/bitmap_get_nones.3
cp bitmap_count.3 $PKG_MAN_PATH/bitmap_count_marks.3
cp bitmap_count.3 $PKG_MAN_PATH/bitmap_count_nones.3

cp bitmap_sync.3 $PKG_MAN_PATH/bitmap_sync.3

# Compress Manual Page
gzip -f $PKG_MAN_PATH/bitmap_t.3
gzip -f $PKG_MAN_PATH/bitmap_init.3
gzip -f $PKG_MAN_PATH/bitmap_dest.3

gzip -f $PKG_MAN_PATH/bitmap_all_mark.3
gzip -f $PKG_MAN_PATH/bitmap_all_none.3

gzip -f $PKG_MAN_PATH/bitmap_set_mark.3
gzip -f $PKG_MAN_PATH/bitmap_set_none.3

gzip -f $PKG_MAN_PATH/bitmap_check.3

gzip -f $PKG_MAN_PATH/bitmap_get_marks.3
gzip -f $PKG_MAN_PATH/bitmap_get_nones.3
gzip -f $PKG_MAN_PATH/bitmap_count_marks.3
gzip -f $PKG_MAN_PATH/bitmap_count_nones.3

gzip -f $PKG_MAN_PATH/bitmap_sync.3

